cc.Class({
    extends: cc.Component,
    properties: {
        manage: cc.Node,
        gameName: ""
    },
    onLoad: function () {
        this.manage.getComponent("exported-GameBox").init(this.gameName), cc.director.on("gameBoxShow", function (t) {
            console.log(t), this.manage.getComponent("exported-GameBox").show({
                appid: t.appid,
                callback: function () {
                    console.log("有 appid 的打开");
                }
            });
        }.bind(this));
    },
    show: function (t) {
        this.manage.getComponent("exported-GameBox").show({
            appid: t,
            callback: function () {
                console.log("打开完成");
            }
        });
    },
    hide: function () {
        this.manage.getComponent("exported-GameBox").hide({
            callback: function () {
                console.log("隐藏完毕");
            }
        });
    }
})